package net.csdn.business.common.domain.request;

import lombok.Data;
import net.csdn.business.common.domain.issue.IssueExt;
import net.csdn.business.common.domain.validation.groups.System;
import net.csdn.business.common.enums.UserTypeEnum;

import javax.validation.constraints.NotBlank;
import java.util.Date;
import java.util.List;

/**
 * @author likun
 * @date 2022/6/8 18:06
 */
@Data
public abstract class CommentReqDto {
    /**
     * 通过 content 截取
     */
    private String description;

    @NotBlank(message = "内容不能为空")
    private String content;

    @NotBlank(message = "内容不能为空")
    private String mdContent;

    /**
     * 评论@username列表
     */
    private List<String> commentAts;

    /**
     * 业务流转
     */
    @NotBlank(message = "uid 不合法", groups = {System.class})
    private String uid;

    /**
     * {@link UserTypeEnum}
     */
    private Integer userType = UserTypeEnum.USER.getType();


    private IssueExt issueExt;

    private String bizNo;
    private String ip;

    private Boolean migrateFlag = false;

    private Date updateDate;
}
